package com.un.ebs.invoice.domain;

import java.util.Date;
import com.un.ebs.invoice.enums.InvoiceCashTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InvoiceCashNoteExt)表实体类
 *
 * @author makejava
 * @since 2021-01-27 15:10:06
 */
@Data
@Component
@TableName("v_invoice_cash_note_ext")
@SuppressWarnings("serial")
public class InvoiceCashNoteExt extends Model<InvoiceCashNoteExt> {

                
    @DbField(name = "id",  length = 40 , precision = 0)
    private String id;

    @DbField(name = "ent_id", length = 40, precision = 0)
    private String entId;

    @DbField(name = "ent_name", length = 255, precision = 0)
    private String entName;

    @DbField(name = "cash_money", length = 21, precision = 2)
    private Double cashMoney;

    @DbField(name = "money_type", length = 100, precision = 0)
    private String moneyType;

    @DbField(name = "money_type_desc", length = 100, precision = 0)
    private String moneyTypeDesc;

    @DbField(name = "cash_time", length = -1, precision = 0)
    private Date cashTime;

    @DbField(name = "cash_year", length = -1, precision = 0)
    private Integer cashYear;

    @DbField(name = "cash_month", length = -1, precision = 0)
    private Integer cashMonth;

    @DbField(name = "cash_type", length = -1, precision = 0)
    private InvoiceCashTypeEnum cashType;

    @DbField(name = "personnel_id", length = 40, precision = 0)
    private String personnelId;

    @DbField(name = "personnel_name", length = 100, precision = 0)
    private String personnelName;

    @DbField(name = "remark", length = 200, precision = 0)
    private String remark;

    @DbField(name = "personnel_ids", length = 1000, precision = 0)
    private String personnelIds;

    @DbField(name = "personnel_names", length = 1000, precision = 0)
    private String personnelNames;

    @DbField(name = "claim_money", length = 38, precision = 2)
    private Double claimMoney;

    @DbField(name = "surplus_money", length = 38, precision = 2)
    private Double surplusMoney;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at_name",  length = 100 , precision = 0)
    private String createAtName;
                
    @DbField(name = "tenant_id",  length = 100 , precision = 0)
    private String tenantId;


}